package org.nestor.demo;

import com.google.protobuf.InvalidProtocolBufferException;
import org.nestor.demo.protobuf.PersonDemo;

import java.util.stream.IntStream;

/**
 * @author : Nestor.Bian
 * @version : V 1.0
 * @date : 2025/2/25
 */
public class App {

    public static void main(String[] args) throws Exception {
        // final PersonDemo.Person person = PersonDemo.Person.newBuilder().setId(1).setName("nestor").setEmail("xxx@demo" +
        //         ".com").addPhone(PersonDemo.Person.PhoneNumber.newBuilder().setNumber("123456789").setType(PersonDemo.Person.PhoneType.MOBILE)).build();
        //
        // final byte[] byteArray = person.toByteArray();
        // final PersonDemo.Person person1 = PersonDemo.Person.parseFrom(byteArray);
        //
        // System.out.println("person1 = " + person1);
        System.out.println("a\nb");
    }

}